1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

Reference | reset()


Syntax
reset()

DescriptionResets all transformations to their default values. NodeBox is a so-called state-machine. For example, once rotate(90) is called, all subsequent shapes, paths, text and images are rotated 90 degrees. The rotation state is 90 degrees. If rotate() is called again, for example rotate(30), the rotation state becomes 120 degrees (90+30). Once reset() is called, the rotation state becomes 0 degrees (the default rotation) again.
Tutorial Graphics State 


Example
GCD
fill(0.2)
fontsize(14)
rotate(90)
text("one", 30, 80)
text("two", 45, 80)
 
reset()
text("three", 70, 80)